package com.kotlin.main

import android.content.Context
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.kotlin.base.utils.RouteTools
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    companion object {
        fun startIntent(context: Context) {
            var intent: Intent = Intent(context, MainActivity::class.java)
            context.startActivity(intent)
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)


        but_yzhg.setOnClickListener { ARouter.getInstance().build(RouteTools.route_yzhg).navigation() }
        but_wyf.setOnClickListener { ARouter.getInstance().build(RouteTools.route_wyf).navigation() }
        but_dyc.setOnClickListener { ARouter.getInstance().build(RouteTools.route_dyc).navigation() }
        but_hxh.setOnClickListener { ARouter.getInstance().build(RouteTools.route_hxh).navigation() }

    }




}
